<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="郝珍华">
    <title></title>
    <style>
        body {
            margin: 0;
        }

        * {
            box-sizing: border-box;
        }

        .container {
            width: 630px;
            height: 840px;
            margin: 30px auto;
            background-color: #ccc;
            border: 1px solid #ccc;
        }

        .datu {
            width: 430px;
            margin: 10px 100px;
            height: 600px;
            border: 1px solid transparent;
            background-color: white;
        }

        .datu img {
            margin-left: 30px;
            margin-top: 20px;
        }

        .xiaotu {
            width: 420px;
            height: 200px;
            border: 1px solid transparent;
            background-color: white;
            margin-left: 104px;
            display: flex;
            position: absolute;
            padding-left: 30px;
        }

        .xiaotu img {

            margin-top: 10px;
        }

        .ziti {
            width: 360px;
            height: 160px;
            /* border:1px solid; */
            margin-left: 35px;
            margin-top: 40px;
        }

        .baoguo .jinxi {
            color: gray;
            font-size: 15px;
        }

        .baoguo {
            width: 430px;
            height: 600px;
        }

        .waibian {
            width: 430px;
            height: 600px;
            border: 5px solid orange;
            position: absolute;
            top: 40px;
            /* transition: all 0.3s linear; */
            display: none;
        }
        /* .datu:hover .waibian {
            border-color: orange;
        } */

        .xiaotu .xiangze {
            width: 170px;
            height: 170px;
            border: 1px solid #ccc;
            top: 10px;
            display: none;
            position: absolute;

            background-color: gray;

            /* transition: all 0.2s linear; */
        }

        .zitc {
            width: 170px;
            height: 170px;

            position: absolute;
            left: -170px;
            top: 10px;
            font-size: 15px;
            display: none;
            /* visibility: hidden;  */
            color: white;
            text-align: center;
        }

        .xiang {
            position: relative;
            /*溢出框的东西隐藏  */
            overflow: hidden;
            padding-left: 10px;
        }
    </style>

</head>

<body>
    <div class="container">
        <div class="datu">
            <div class="baoguo">
                <img src="./ren.jpg" alt="">
                <div class="ziti">
                    <span class="jinxi">&#x3000;[金禧]设计上运用了多片层叠的设计，形成立体到放的花苞视觉
                创意独特，浓烈的印花明快的色彩勾勒出美妙的夏日色彩，优质雪纺
                面料让小衫更加凉快，做工相当优秀.
            </span>
                </div>
            </div>
            <div class="waibian"></div>
        </div>
        <div class="xiaotu">
            <div class="xiang">

                <img src="./xiang.jpg" alt="">
                <div class="xiangze"></div>
                <div class="zitc">
                    <span class="zuo">
                       <h5>品牌旗舰店</h5>
                       <p>品牌旗舰店具有好的东西，和好的质量，让我们能够
                           得到自己想要的一些好的喜欢
                       </p>
                    </span>
                </div>

            </div>
            <div class="xiang">

                <img src="./xiao.jpg" alt="">
                <div class="xiangze"></div>
                <div class="zitc">
                    <span class="zuo">
                       <h5>品牌旗舰店</h5>
                       <p>品牌旗舰店具有好的东西，和好的质量，让我们能够
                           得到自己想要的一些好的喜欢
                       </p>
                    </span>
                </div>

            </div>

        </div>
    </div>
    <script src="./jquery.js"></script>
</body>

</html>
<script>
    $('.datu').hover(function () {
        //stop() 阻止一直淡入淡出
        $(this).find('.waibian').stop().fadeTo(1000, 1);

    }, function () {
        $(this).find('.waibian').stop().fadeTo(1000, 0);

    })
    $('.xiang').hover(function () {
        $(this).find('.xiangze').stop().fadeTo(1000, 0.4);
        $(this).find('.zitc')
            .stop()
            .show()
            .animate({
                left: 0,
            }, 1000)

    }, function () {
        $(this).find('.xiangze').stop().fadeTo(1000, 0.1);
        $(this).find('.zitc')
            .stop()
            .animate({ left: -170 }, 1000)
    })

</script>